import type { BannerType, HomeVideoPage, HomeVideoType } from './model'
import http from '~/utils/http'

// 广告位banner
export function getBannerList(params: BannerType) {
  return http.post<any>({
    url: '/video/home/queryVideoBannerList',
    body: params
  })
}
// 电影(电视剧/动漫/综艺)首页-推荐数据
export function getHomeVideoList(params: HomeVideoPage) {
  return http.post<any>({
    url: '/video/home/getHomeList',
    body: params
  })
}
// 电影(电视剧/动漫/综艺)分页列表
export function getHomeVideoPage(params: HomeVideoPage) {
  return http.post<any>({
    url: '/video/home/getVideoPage',
    body: params
  })
}
// 获取电影(电视剧/动漫/综艺)类型配置
export function getHomeVideoTypeList(params: HomeVideoType) {
  return http.post<any>({
    url: '/video/home/getVideoTypeList',
    body: params
  })
}
